<?php
namespace app\index\model;

use think\Model;

class Category extends Model
{
    public function getCateName($id)
    {
        return $this->where('id', $id)->value('name');
    }
}
